<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/manage/system/pageBase.jsp" %>
<%@ page info="页面设置" %>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro"%>
<style>
    table {
        table-layout: fixed; /* 只有定义了表格的布局算法为fixed，下面td的定义才能起作用。 */
        width:100%;
    }

    td {
        word-break: keep-all; /* 不换行 */
        white-space: nowrap; /* 不换行 */
        overflow: hidden; /* 内容超出宽度时隐藏超出部分的内容 */
        text-overflow: ellipsis; /* 当对象内文本溢出时显示省略标记(...) ；需与overflow:hidden;一起使用*/
    }

</style>

    <div style="height:auto!important;height:550px;min-height:550px;">
        <h3 style="border-bottom: 1px solid #D7D7D7;color: #666666;font-size: 28px;padding-bottom: 20px;margin-bottom: 30px;">
	        <%=getServletInfo()%>
            <shiro:hasPermission name="pageConfig:toAdd">
                <a href="toAdd" class="btn btn-primary"
                   style="padding: 2px 15px;float:right;">
                    <i class="icon-plus "></i>新增
                </a>
            </shiro:hasPermission>
	    </h3>
        <table class="table table-bordered table-hover table-striped" >
            <tr >
                <th width="5%">页面id</th>
                <th width="8%">页面名称</th>
                <th width="8%">状态</th>
                <th width="8%">链接</th>
                <th width="10%" align="center">操作</th>
            </tr>
            <c:forEach var="item" items="${pageConfigList}">
                <tr>
                    <td>${item.id}</td>
                    <td>${item.pageName}</td>
                    <td>
                    	<c:if test="${item.status eq '1'}">显示</c:if>
                    	<c:if test="${item.status eq '0'}">隐藏</c:if>
                    </td>
                    <td>${item.pageUrl}</td>
                    <td>
                        <shiro:hasPermission name="pageConfig:toEdit">
                            <a href="toEdit?id=${item.id}">编辑</a>&ensp;
                        </shiro:hasPermission>
                        <shiro:hasPermission name="pageConfig:toDel">
                            <a href="toDel?id=${item.id}">删除</a>
                        </shiro:hasPermission>
                    </td>
                </tr>
            </c:forEach>

        </table>
    </div>

<%@ include file="/manage/system/baseFoot.jsp" %>